//
//  GS_MoreCollectionViewCell.m
//  GoodManNews
//
//  Created by dllo on 16/1/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "GS_MoreCollectionViewCell.h"

@implementation GS_MoreCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [self.imageV mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(self.contentView).with.offset(10);
        make.left.equalTo(self.contentView).with.offset(20);
        make.right.equalTo(self.contentView.mas_right).with.offset(-20);
        make.bottom.equalTo(self.titleL.mas_top).with.offset(-10);
        make.height.mas_equalTo(@60);
        
        
    }];
    
    [self.titleL mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(self.contentView).with.offset(15);
        make.right.equalTo(self.contentView.mas_right).with.offset(-15);
        make.bottom.equalTo(self.contentView.mas_bottom).with.offset(-10);
        
    }];
}

- (void)createView {
    
    self.imageV = [UIImageView new];
    [self.contentView addSubview:self.imageV];
    self.imageV.backgroundColor = [UIColor blackColor];
    
    self.titleL = [UILabel new];
    self.titleL.font = [UIFont systemFontOfSize:12];
    self.titleL.textColor = [UIColor blackColor];
    self.titleL.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.titleL];
//    self.titleL.backgroundColor = [UIColor blackColor];
    
}

@end
